package artid.com.arttogo.bean;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;

public class RqCertif extends AppItem implements Serializable {
	String art_id;
	String pic_url;
	String title;
	String detail;
	String commend_num;
	String comment_num;
	String status;
	String organizer;
	String code;
	String imgurl;
	String fav_num;
	String shareurl = "";
	String artist_id;
	String realname;
	String path;
	String organization;
	ArrayList<PointImg> list;
	String allimge;
	String artandauthorphotour;
	String artpointurl;
	String fullwidth;
	String fullheight;
	String zoomheight;
	String author;
	String is_art_commend;
	String is_art_favorite;
	String is_follow;
	String uid;
	String artistuid;
	String arttype;
	String size;
	String createtime;
	String is_artist;
	String is_equipment;
	String is_phone;
	
	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		list = new ArrayList<PointImg>();
		is_equipment = obj.optString("is_equipment");
		is_artist = obj.optString("is_artist");
		createtime = obj.optString("createtime");
		size = obj.optString("size");
		arttype = obj.optString("arttype");
		artistuid = obj.optString("artistuid");
		art_id = obj.optString("art_id");
		pic_url = obj.optString("pic_url");
		title = obj.optString("title");
		detail = obj.optString("detail");
		commend_num = obj.optString("commend_num");
		comment_num = obj.optString("comment_num");
		status = obj.optString("status");
		organizer = obj.optString("organizer");
		code = obj.optString("code");
		imgurl = obj.optString("imgurl"); 
		fav_num = obj.optString("fav_num");
		shareurl = obj.optString("shareurl");
		artist_id = obj.optString("artist_id");
		realname = obj.optString("realname");
		path = obj.optString("path");
		allimge = obj.optString("allimge");
		artandauthorphotour = obj.optString("artandauthorphotour");
		artpointurl = obj.optString("artpointurl");
		fullwidth = obj.optString("fullwidth");
		zoomheight = obj.optString("zoomheight");
		fullheight = obj.optString("fullheight");
		author = obj.optString("author");
		organization = obj.optString("organization");
		is_art_commend = obj.optString("is_art_commend");
		is_art_favorite = obj.optString("is_art_favorite");
		is_follow = obj.optString("is_follow");
		uid  = obj.optString("uid");
		is_phone = obj.optString("is_phone");
		JSONArray array = obj.optJSONArray("pointinformation");
		if (array!=null) {
			for (int i = 0; i < array.length(); i++) {
				try {
					JSONObject object = array.getJSONObject(i);
					PointImg img = new PointImg();
					img.setImgurl(object.optString("imgurl"));
					img.setText(object.optString("text"));
					img.setX(object.optString("x"));
					img.setY(object.optString("y"));
					list.add(img);
				} catch (JSONException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
		


	}

	

	public String getIs_phone() {
		return is_phone;
	}



	public void setIs_phone(String is_phone) {
		this.is_phone = is_phone;
	}



	public String getIs_equipment() {
		return is_equipment;
	}



	public void setIs_equipment(String is_equipment) {
		this.is_equipment = is_equipment;
	}



	public String getIs_artist() {
		return is_artist;
	}



	public void setIs_artist(String is_artist) {
		this.is_artist = is_artist;
	}



	public String getCreatetime() {
		return createtime;
	}



	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}



	public String getSize() {
		return size;
	}



	public void setSize(String size) {
		this.size = size;
	}



	public String getArttype() {
		return arttype;
	}



	public void setArttype(String arttype) {
		this.arttype = arttype;
	}



	public String getArtistuid() {
		return artistuid;
	}



	public void setArtistuid(String artistuid) {
		this.artistuid = artistuid;
	}



	public String getUid() {
		return uid;
	}



	public void setUid(String uid) {
		this.uid = uid;
	}



	public String getIs_art_commend() {
		return is_art_commend;
	}



	public void setIs_art_commend(String is_art_commend) {
		this.is_art_commend = is_art_commend;
	}



	public String getIs_art_favorite() {
		return is_art_favorite;
	}



	public void setIs_art_favorite(String is_art_favorite) {
		this.is_art_favorite = is_art_favorite;
	}



	public String getIs_follow() {
		return is_follow;
	}



	public void setIs_follow(String is_follow) {
		this.is_follow = is_follow;
	}



	public String getAuthor() {
		return author;
	}


	public void setAuthor(String author) {
		this.author = author;
	}



	public class PointImg implements Serializable {
		String imgurl ="";
		String text = "";
		String x ="";
		String y = "";
		public String getX() {
			return x;
		}
		public void setX(String x) {
			this.x = x;
		}
		public String getY() {
			return y;
		}
		public void setY(String y) {
			this.y = y;
		}
		public String getImgurl() {
			return imgurl;
		}
		public void setImgurl(String imgurl) {
			this.imgurl = imgurl;
		}
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
	
		
	}

	public String getAllimge() {
		return allimge;
	}


	public void setAllimge(String allimge) {
		this.allimge = allimge;
	}


	public String getArtandauthorphotour() {
		return artandauthorphotour;
	}


	public void setArtandauthorphotour(String artandauthorphotour) {
		this.artandauthorphotour = artandauthorphotour;
	}


	public String getArtpointurl() {
		return artpointurl;
	}


	public void setArtpointurl(String artpointurl) {
		this.artpointurl = artpointurl;
	}


	public String getFullwidth() {
		return fullwidth;
	}


	public void setFullwidth(String fullwidth) {
		this.fullwidth = fullwidth;
	}


	public String getFullheight() {
		return fullheight;
	}


	public void setFullheight(String fullheight) {
		this.fullheight = fullheight;
	}


	public String getZoomheight() {
		return zoomheight;
	}


	public void setZoomheight(String zoomheight) {
		this.zoomheight = zoomheight;
	}

	public String getOrganization() {
		return organization;
	}


	public void setOrganization(String organization) {
		this.organization = organization;
	}


	public String getArt_id() {
		return art_id;
	}


	public void setArt_id(String art_id) {
		this.art_id = art_id;
	}


	public String getPic_url() {
		return pic_url;
	}


	public void setPic_url(String pic_url) {
		this.pic_url = pic_url;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getDetail() {
		return detail;
	}


	public void setDetail(String detail) {
		this.detail = detail;
	}


	public String getCommend_num() {
		return commend_num;
	}


	public void setCommend_num(String commend_num) {
		this.commend_num = commend_num;
	}


	public String getComment_num() {
		return comment_num;
	}


	public void setComment_num(String comment_num) {
		this.comment_num = comment_num;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getOrganizer() {
		return organizer;
	}


	public void setOrganizer(String organizer) {
		this.organizer = organizer;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getImgurl() {
		return imgurl;
	}


	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}


	public String getFav_num() {
		return fav_num;
	}


	public void setFav_num(String fav_num) {
		this.fav_num = fav_num;
	}


	public String getShareurl() {
		return shareurl;
	}


	public void setShareurl(String shareurl) {
		this.shareurl = shareurl;
	}


	public String getArtist_id() {
		return artist_id;
	}


	public void setArtist_id(String artist_id) {
		this.artist_id = artist_id;
	}


	public String getRealname() {
		return realname;
	}


	public void setRealname(String realname) {
		this.realname = realname;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	public ArrayList<PointImg> getList() {
		return list;
	}


	public void setList(ArrayList<PointImg> list) {
		this.list = list;
	};
	
	
	

	

}
